package org.example.erp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.erp.domain.WorkFixtures;
import org.example.erp.mapper.WorkFixturesMapper;
import org.example.erp.service.WorkFixturesService;
import org.springframework.stereotype.Service;

@Service
public class WorkFixturesServiceImpl extends ServiceImpl<WorkFixturesMapper, WorkFixtures> implements WorkFixturesService {

    @Override
    public Page<WorkFixtures> getTypeAndFixtures(Page<WorkFixtures> page, QueryWrapper<WorkFixtures> queryWrapper) {
        System.out.println("------------------------------------------");
        System.out.println(queryWrapper);
        return page.setRecords(this.baseMapper.getTypeAndFixtures(page, queryWrapper));
    }

}
